package com.ExaminStudy.ExtendDemo;

public class Employee {
    String name;
    int age;
    int salary;//工资
    Employee(String name,int age){
        this.name=name;
        this.age=age;
    }
    Employee(String name,int age,int salary){
        this(name,age);
        this.salary=salary;
    }
    void show(){
        System.out.println("姓名"+name);
        System.out.println("年龄"+age);
    }
}
